using System;
using System.Data;
using System.Text;

namespace Webgame.Entity
{
    public class Player
    {

        #region property
        int _ID = 0;

        public int ID
        {
            get
            {
                return _ID;
            }
            set
            {
                _ID = value;
            }
        }
        string _Name = string.Empty;

        public string Name
        {
            get
            {
                return _Name;
            }
            set
            {
                _Name = value;
            }
        }
        string _Password = string.Empty;

        public string Password
        {
            get
            {
                return _Password;
            }
            set
            {
                _Password = value;
            }
        }
        string _Color = string.Empty;

        public string Color
        {
            get
            {
                return _Color;
            }
            set
            {
                _Color = value;
            }
        }
        string _Picture = string.Empty;

        public string Picture
        {
            get
            {
                return _Picture;
            }
            set
            {
                _Picture = value;
            }
        }
        #endregion
        public override string ToString()
        {
            StringBuilder builder = new StringBuilder();
            builder.AppendFormat("ID={0}", ID);
            builder.AppendLine();
            builder.AppendFormat("Name={0}", Name);
            builder.AppendLine();
            builder.AppendFormat("Password={0}", Password);
            builder.AppendLine();
            builder.AppendFormat("Color={0}", Color);
            builder.AppendLine();
            builder.AppendFormat("Picture={0}", Picture);
            builder.AppendLine();

            return builder.ToString();
        }
    }
}
